#include <stdio.h>

int main()
{
    int num = -1;
    //-1
    //1000 0000 0000 0000 0000 0000 0000 0001
    //1111 1111 1111 1111 1111 1111 1111 1110
    //1111 1111 1111 1111 1111 1111 1111 1111
    //1111 1111 1111 1111 1111 1111 1111 1111 <<1
    //1111 1111 1111 1111 1111 1111 1111 1110
    //1000 0000 0000 0000 0000 0000 0000 0010
    //1111 1111 1111 1111 1111 1111 1111 1111 <<2
    //1111 1111 1111 1111 1111 1111 1111 1100
    //1000 0000 0000 0000 0000 0000 0000 0100//-4
    int a = num<<1;
    int b = num<<2;
    printf("num1 =====%d\n", a);
    printf("num2 =====%d\n", b);

    int c = num>>1;
    //1000 0000 0000 0000 0000 0000 0000 0001
    //1111 1111 1111 1111 1111 1111 1111 1111//-1buma
    int d = num>>5;

    printf("num3 =====%d\n", c);
    printf("num4 =====%d\n", d);

    return 0;
}